<?php
	$app->get('/doc/sign/add', function() use($app){
		$app->render('info.php', array(
			'name' => 'sign/add',
			'summary' => '打卡',
			'method' => 'POST',
			'parameter' => array(
				array(
					'name' => 'info',
					'ismust' => true,
					'type' => 'string',
					'summary' => '签到二维码信息'
				),
				array(
					'name' => 'gymid',
					'ismust' => true,
					'type' => 'int',
					'summary' => '健身房id'
				)
			)
		));
	});
	$app->get('/doc/sign/gym/info', function() use($app){
		$app->render('info.php', array(
			'name' => 'sign/gym/info',
			'summary' => '健身房打信息卡',
			'method' => 'GET',
			'parameter' => array(
				array(
					'name' => 'gymid',
					'ismust' => true,
					'type' => 'int',
					'summary' => '健身房id'
				)
			)
		));
	});
	$app->get('/doc/sign/info', function() use($app){
		$app->render('info.php', array(
			'name' => 'sign/info',
			'summary' => '健身房打信息卡',
			'method' => 'GET',
			'parameter' => array(
				array(
					'name' => 'userid',
					'ismust' => true,
					'type' => 'int',
					'summary' => '用户ID'
				),
				array(
					'name' => 'usertype',
					'ismust' => true,
					'type' => 'int',
					'summary' => '用户类型，1会员2教练'
				),
				array(
					'name' => 'month',
					'ismust' => true,
					'type' => 'month',
					'summary' => '月份，格式：yyyy-mm'
				)
			)
		));
	});
?>